import { axios } from '@/utils/request'

/**
 * 查询所有通道
 */
export function selectAllPassageway () {
  return axios({
    url: '/shop/passageway/selectAllPassageway',
    method: 'post'
  })
}

export function selectPage (parameter) {
  return axios({
    url: '/shop/passageway/selectPage',
    method: 'post',
    params: parameter
  })
}

export function saveOrUpdate (parameter) {
  return axios({
    url: '/shop/passageway/saveOrUpdate',
    method: 'post',
    data: parameter
  })
}

export function del (parameter) {
  return axios({
    url: '/shop/passageway/' + parameter + '/delete',
    method: 'get'
  })
}

export function selectWaysBycustomerId (parameter) {
  return axios({
    url: '/shop/passageway/' + parameter + '/selectWaysBycustomerId',
    method: 'get'
  })
}

export function addPassageway (parameter) {
  return axios({
    url: '/shop/passageway/addPassageway',
    method: 'post',
    data: parameter
  })
}
